import request from '@/utils/request'
// 授权登录接口
// export function login(data) {
//   return request({
//     url: '/api/v1/middle/account/qywx/login',
//     method: 'post',
//     data
//   })
// }
export function login(params) {
  return request({
    url: '/api/v1/training/weixin/oauth',
    method: 'get',
    params
  })
}

/**水印接口 */
export function getUserInfo(params) {
  return request({
    url: '/api/v1/training/weixin/userInfo',
    method: 'get',
    params
  })
}
//首页数据
export function getTodaytask(params) {
  return request({
    url: '/api/v1/training/weixin/task/today',
    method: 'get',
    params
  })
}
// 项目列表
export function getProjectList(params) {
  return request({
    url: '/api/v1/training/weixin/project/list',
    method: 'get',
    params
  })
}
// 项目列表
export function getTaskDetail(params) {
  return request({
    url: '/api/v1/training/weixin/project/detail',
    method: 'get',
    params
  })
}
//完成任务
export function taskComplete(params) {
  return request({
    url: '/api/v1/training/weixin/task/complete',
    method: 'get',
    params
  })
}
// 待办列表
export function getTaskList(params) {
  return request({
    url: '/api/v1/training/weixin/task/list',
    method: 'get',
    params
  })
}
// 会议状态
export function getStatus(params) {
  return request({
    url: '/api/v1/training/weixin/meeting/status',
    method: 'get',
    params
  })
}